package com.base.pig.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.base.pig.dto.TableDto;
import com.base.pig.entity.PskInfo;
import com.base.pig.mapper.PskInfoMapper;

import com.base.pig.mapper.SensorCheckAlarmMapper;
import com.base.pig.service.PskInfoService;
import com.base.pig.vo.DeviceListVo;
import com.base.pig.vo.PskStatisticResultVo;
import com.base.pig.vo.StatisticResultVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yjh
 * @since 2022-10-26
 */
@Service
public class PskInfoServiceImpl extends ServiceImpl<PskInfoMapper, PskInfo> implements PskInfoService {

    @Autowired
    private PskInfoMapper pskInfoMapper;

    @Override
    public List<DeviceListVo> deviceList(String deviceTableName,String num) {
        List<DeviceListVo> list = pskInfoMapper.deviceList(deviceTableName, Integer.valueOf(num));
        return list;
    }
    @Override
    public List<DeviceListVo> devicePsList(String deviceTableName,String num) {
        List<DeviceListVo> list = pskInfoMapper.devicePsList(deviceTableName, Integer.valueOf(num));
        return list;
    }
}
